# -*- coding:utf-8 -*-

import re

if __name__ == '__main__':
    f = open('The.Bourne.Supremacy.eng.srt','r',encoding='utf-16')
    content = ''
    flag = 0
    for _line in f.readlines():
        #flag += 1
        #if flag>20:
        #    break
        if len(_line.replace('\n','').replace('\r','')) == 0 or '-->' in _line or len(re.findall(r'^\d+$',_line)):
            continue
        content += _line
    f.close()
    output = open('The.Bourne.Supremacy.eng.txt','w')
    output.write(content)
    output.close()